\section{Tools.Json类参考}
\label{class_tools_1_1_json}\index{Tools::Json@{Tools::Json}}


Json的摘要说明 1、生成[\{\},\{\},\{\}]形式。普通格式 2、生成\{\char`\"{}total\char`\"{}:5,\char`\"{}rows\char`\"{}:[\{\},\{\}]\}形式。easyui json格式 3、生成\{\char`\"{}表名\char`\"{}:[\{\},\{\}],\char`\"{}表名\char`\"{}:[\{\},\{\}]\}形式。  


\subsection*{静态公有成员}
\begin{DoxyCompactItemize}
\item 
static string {\bf ToJson} (object jsonObject)
\begin{DoxyCompactList}\small\item\em 对象转换为Json字符串 \item\end{DoxyCompactList}\item 
static string {\bf ToJson} (IEnumerable array)
\begin{DoxyCompactList}\small\item\em 对象集合转换Json \item\end{DoxyCompactList}\item 
static string {\bf ToArrayString} (IEnumerable array)
\begin{DoxyCompactList}\small\item\em 普通集合转换Json \item\end{DoxyCompactList}\item 
static string {\bf ToJson} (DataTable table)
\begin{DoxyCompactList}\small\item\em Datatable转换为Json. \item\end{DoxyCompactList}\item 
static string {\bf ToJson} (DbDataReader dataReader)
\begin{DoxyCompactList}\small\item\em DataReader转换为Json. \item\end{DoxyCompactList}\item 
static string {\bf ToJson} (DataSet dataSet)
\begin{DoxyCompactList}\small\item\em DataSet转换为Json. \item\end{DoxyCompactList}\item 
static string {\bf ToJson} (string value)
\begin{DoxyCompactList}\small\item\em String转换为Json. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{详细描述}
Json的摘要说明 1、生成[\{\},\{\},\{\}]形式。普通格式 2、生成\{\char`\"{}total\char`\"{}:5,\char`\"{}rows\char`\"{}:[\{\},\{\}]\}形式。easyui json格式 3、生成\{\char`\"{}表名\char`\"{}:[\{\},\{\}],\char`\"{}表名\char`\"{}:[\{\},\{\}]\}形式。 

\subsection{成员函数文档}
\index{Tools::Json@{Tools::Json}!ToArrayString@{ToArrayString}}
\index{ToArrayString@{ToArrayString}!Tools::Json@{Tools::Json}}
\subsubsection[{ToArrayString}]{\setlength{\rightskip}{0pt plus 5cm}static string Tools.Json.ToArrayString (
\begin{DoxyParamCaption}
\item[{IEnumerable}]{ array}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_json_ae8d2e4ca8f379807a324c86a2bae62b3}


普通集合转换Json 


\begin{DoxyParams}{参数}
{\em array} & 集合对象\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
Json字符串
\end{DoxyReturn}
\index{Tools::Json@{Tools::Json}!ToJson@{ToJson}}
\index{ToJson@{ToJson}!Tools::Json@{Tools::Json}}
\subsubsection[{ToJson}]{\setlength{\rightskip}{0pt plus 5cm}static string Tools.Json.ToJson (
\begin{DoxyParamCaption}
\item[{string}]{ value}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_json_a03090f56a95dc8af78ba9bc00f5b6ddf}


String转换为Json. 


\begin{DoxyParams}{参数}
{\em value} & String对象\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
Json字符串
\end{DoxyReturn}
\index{Tools::Json@{Tools::Json}!ToJson@{ToJson}}
\index{ToJson@{ToJson}!Tools::Json@{Tools::Json}}
\subsubsection[{ToJson}]{\setlength{\rightskip}{0pt plus 5cm}static string Tools.Json.ToJson (
\begin{DoxyParamCaption}
\item[{DataSet}]{ dataSet}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_json_a1bfbfb6851ced664f455a3a52e1d8dad}


DataSet转换为Json. 


\begin{DoxyParams}{参数}
{\em dataSet} & DataSet对象\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
Json字符串
\end{DoxyReturn}
\index{Tools::Json@{Tools::Json}!ToJson@{ToJson}}
\index{ToJson@{ToJson}!Tools::Json@{Tools::Json}}
\subsubsection[{ToJson}]{\setlength{\rightskip}{0pt plus 5cm}static string Tools.Json.ToJson (
\begin{DoxyParamCaption}
\item[{DbDataReader}]{ dataReader}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_json_adcf56a902b4e7334f3855695c24d3bfc}


DataReader转换为Json. 


\begin{DoxyParams}{参数}
{\em dataReader} & DataReader对象\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
Json字符串
\end{DoxyReturn}
\index{Tools::Json@{Tools::Json}!ToJson@{ToJson}}
\index{ToJson@{ToJson}!Tools::Json@{Tools::Json}}
\subsubsection[{ToJson}]{\setlength{\rightskip}{0pt plus 5cm}static string Tools.Json.ToJson (
\begin{DoxyParamCaption}
\item[{DataTable}]{ table}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_json_af397e48ef7ca37b9791fd56814e41bb1}


Datatable转换为Json. 


\begin{DoxyParams}{参数}
{\em table} & Datatable对象\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
Json字符串
\end{DoxyReturn}
\index{Tools::Json@{Tools::Json}!ToJson@{ToJson}}
\index{ToJson@{ToJson}!Tools::Json@{Tools::Json}}
\subsubsection[{ToJson}]{\setlength{\rightskip}{0pt plus 5cm}static string Tools.Json.ToJson (
\begin{DoxyParamCaption}
\item[{object}]{ jsonObject}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_json_a366581919ae47581e88eb8719f2d23d1}


对象转换为Json字符串 


\begin{DoxyParams}{参数}
{\em jsonObject} & 对象\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
Json字符串
\end{DoxyReturn}
\index{Tools::Json@{Tools::Json}!ToJson@{ToJson}}
\index{ToJson@{ToJson}!Tools::Json@{Tools::Json}}
\subsubsection[{ToJson}]{\setlength{\rightskip}{0pt plus 5cm}static string Tools.Json.ToJson (
\begin{DoxyParamCaption}
\item[{IEnumerable}]{ array}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_json_a9835fa780ad978588011be8910fa711c}


对象集合转换Json 


\begin{DoxyParams}{参数}
{\em array} & 集合对象\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
Json字符串
\end{DoxyReturn}


该类的文档由以下文件生成：\begin{DoxyCompactItemize}
\item 
D:/Project/1101/Tools/JsonHelper.cs\end{DoxyCompactItemize}
